/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package we.dispatcher.writer;

import we.dispatcher.CPacketWriter;

/**
 *
 * @author ADMIN
 */
public class DoubleArrWriterProc implements IWritingProcessor
{

    public static final DoubleArrWriterProc processor = new DoubleArrWriterProc();

    @Override
    public void write(CPacketWriter writer, Object obj)
    {
        double[] arr = (double[]) obj;
        for (int i = 0; i < arr.length; i++)
        {
            writer.buffer().putDouble(arr[i]);
        }
    }
}
